<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>订单详情-打印</title>
<%@ include file="/page/include.jsp"%>
</head>
<style type="text/css">
.error {
	color: red;
	padding-left: 10px;
}
</style>
<body class="nav-md" style="background-color: #f7f7f7">
	<div class="container body">
		<div class="main_container">
			<div class="row" style="margin-left:2px;">
				<input type="hidden" id="fromPage"  value="${fromPage}"/>
				<button id="btn_print_order" class="btn btn-danger">打印订单</button>
				<button id="btn_back" class="btn btn-default">返回</button>
			</div>
			<div id="order_print_tag" class="row" style="padding:20px;background-color: #fff;">
							<div class="row">
	                    		<div class="col-md-12 col-sm-12 col-xs-12" ">
	                    			<div class="order_detail_info_tips_container">
	                    				<div><span>【收货人信息】</span><span>收货人 :${order.receiverName}</span><span style='margin-left:20px;'>收货人号码：${order.receiverMobile }</span><span  style='margin-left:20px;'>收货地址：${order.provinceName}${order.cityName}${order.areaName}${order.streetName}${order.address}</span></div>
	                    				<div><span>【发票信息】</span><span>发票类型：${order.invoiceTypeName}</span></div>
	                    			</div>
	                    		</div>
	                    	</div>
	                    	
	                    	
	                    	<div class="row" style="margin-top:20px;">
	                    		<div class="col-md-12 col-sm-12 col-xs-12" ">
									<input type="hidden"  id="orderCode"  name="orderCode"  value="${orderCode}"/>
									<%-- 
									<table id="orderProductDetailTable" class="table"></table>
									--%>
									<table class="order_print_table">
										<thead>
											<td>序号</td>
											<td>商品图片</td>
											<td>商品名称</td>
											<td>价格</td>
											<td>购买数量</td>
											<td>金额小计</td>
										</thead>
										<c:forEach items="${productList}" var="product" varStatus="status">
											<tr>
												<td>${status.count }</td>
												<td><img src="<%=PublicConfig.IMG_ROOT_URL%>${product.imagePath}" style="width:48px;height:48px;border:1px solid #e8e8e8;"/></td>
												<td>${product.productName }</td>
												<td>
													<c:if test="${product.productAdjustPrice !=null}">
														<span style="text-decoration: line-through;">原价：${product.productPrice }</span>
														<span style="margin-left:20px;color:#FC547B;">调价后： ${product.productAdjustPrice }</span></td>
													</c:if>
													<c:if test="${product.productAdjustPrice ==null}">
														<span>原价：${product.productPrice }</span>
													</c:if>
												<td>${product.buyNum }</td>
												<td>${product.productItemMoney }</td>
											</tr>
										</c:forEach>
									</table>
								</div>
							</div>
							
							<div class="row" style="margin-top:20px;">
	                    		<div class="col-md-6 col-sm-6 col-xs-6">
	                    			<div  class="order_detail_info_tips_container" style="height: 240px;padding-left:0px;">
	                    				<ul>
	                    					<li><b>温馨提示：</b></li>
	                    					<li>1.1个积分抵1元人民币</li>
	                    					<li>2.费用信用中调价后应付费用为商品总金额-优惠券抵扣金额-积分抵扣金额-订单促销优惠金额-+/-人工调价
	                    					<li>3.调价时，订单需要处于待确认状态且付款状态为未支付</li>
	                    					<li>4.调价时，优惠调价金额为正数时表示降价，为负数时表示提高价格，可以多次调价。</li>
	                    				</ul>
	                    			</div>
	                    		</div>
	                    		<div class="col-md-6 col-sm-6 col-xs-6">
	                    			<div class="col-md-4 col-sm-4 col-xs-4"></div>
	                    			<div class="col-md-3 col-sm-3 col-xs-3 order_price_item">
	                    				商品总金额：
	                    			</div>
	                    			<div class="col-md-5 col-sm-5 col-xs-5 order_price_item" >
	                    				￥${order.orderMoney}
	                    			</div>
	                    		</div>
	                    		<div class="col-md-6 col-sm-6 col-xs-6">
	                    			<div class="col-md-4 col-sm-4 col-xs-4"></div>
	                    			<div class="col-md-3 col-sm-3 col-xs-3 order_price_item">
	                    				优惠券抵扣金额：
	                    			</div>
	                    			<div class="col-md-5 col-sm-5 col-xs-5 order_price_item">
	                    				-￥${order.couponMoney }
	                    			</div>
	                    		</div>
	                    		<div class="col-md-6 col-sm-6 col-xs-6">
	                    			<div class="col-md-4 col-sm-4 col-xs-4"></div>
	                    			<div class="col-md-3 col-sm-3 col-xs-3 order_price_item">
	                    				积分抵扣：
	                    			</div>
	                    			<div class="col-md-5 col-sm-5 col-xs-5 order_price_item">
	                    				-￥${order.pointsMoney }
	                    			</div>
	                    		</div>
	                    		<div class="col-md-6 col-sm-6 col-xs-6" ">
	                    			<div class="col-md-4 col-sm-4 col-xs-4"></div>
	                    			<div class="col-md-3 col-sm-3 col-xs-3 order_price_item">
	                    				订单促销优惠：
	                    			</div>
	                    			<div class="col-md-5 col-sm-5 col-xs-5 order_price_item" >
	                    				-￥${order.promotionDiscountMoney }
	                    			</div>
	                    		</div>
	                    		<div class="col-md-6 col-sm-6 col-xs-6">
	                    			<div class="col-md-4 col-sm-4 col-xs-4"></div>
	                    			<div class="col-md-3 col-sm-3 col-xs-3 order_price_item">
	                    				运费：
	                    			</div>
	                    			<div class="col-md-5 col-sm-5 col-xs-5 order_price_item">
	                    				￥${order.deliveryFeeMoney }
	                    			</div>
	                    		</div>
	                    		<div class="col-md-6 col-sm-6 col-xs-6">
	                    			<div class="col-md-4 col-sm-4 col-xs-4"></div>
	                    			<div class="col-md-3 col-sm-3 col-xs-3 order_price_bold">
	                    				总计：
	                    			</div>
	                    			<div class="col-md-5 col-sm-5 col-xs-5 order_price_bold" >
	                    				￥${order.realPayMoney - order.adjustProductMoney - order.adjustOrderMoney}
	                    			</div>
	                    		</div>
	                    		<div class="col-md-6 col-sm-6 col-xs-6">
	                    			<div class="col-md-4 col-sm-4 col-xs-4"></div>
	                    			<div class="col-md-3 col-sm-3 col-xs-3 order_price_item">
	                    			</div>
	                    			<div class="col-md-5 col-sm-5 col-xs-5 order_price_item">
	                    				(不包含人工调价)
	                    			</div>
	                    		</div>
	                    		<div class="col-md-6 col-sm-6 col-xs-6">
	                    			<div class="col-md-4 col-sm-4 col-xs-4"></div>
	                    			<div class="col-md-3 col-sm-3 col-xs-3 order_price_item">
	                    				单品调价：
	                    			</div>
	                    			<div class="col-md-5 col-sm-5 col-xs-5 order_price_item">
	                    				-￥${order.adjustProductMoney }
	                    			</div>
	                    		</div>
	                    		<div class="col-md-6 col-sm-6 col-xs-6">
	                    			<div class="col-md-4 col-sm-4 col-xs-4"></div>
	                    			<div class="col-md-3 col-sm-3 col-xs-3 order_price_red" >
	                    				应付：
	                    			</div>
	                    			<div class="col-md-5 col-sm-5 col-xs-5 order_price_red" >
	                    				￥${order.realPayMoney }
	                    			</div>
	                    		</div>
	                    	</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript" src="${rootPath}/js/order/order_print.js"></script>
</html>